<include file="./Application/Home/View/default/public/header.html" title="教员详情"/>
<link rel="stylesheet" href="/Public/index/resource/teacherdetail.css">
 <if condition="$isMobile eq 1 ">
    <!-- 移动端 -->
    <div class="m-head">
        <img class="left" src="__ROOT__/upload/{$data.avatar}" width="75" height="75">
        <div class="right">
            <h3 class="name" id="teahcer_name">{$data.relname}</h3>
            <p>学校：{$data.school}</p>
            <p>高考成绩：{$data.score}</p>
        </div>
    </div>
    <div class="m-main">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h4 class="panel-title">个人信息</h4>
            </div>
            <div class="panel-body">
                <div class="subject">
                    <p>授课科目：{$data.lesson}</p>
                </div>
                <div class="grade" style="margin-top: 20px;margin-bottom: 20px;">
                    <p>教学年级：{$data.grade}</p>
                </div>
                <hr>
                <p class="desc">个人描述:<span>{$data.description}</span></p>
            </div>
        </div>


        <div class="panel panel-default">
            <div class="panel-heading">
                <h4 class="panel-title">家教经历</h4>
            </div>
            <div class="panel-body desc">
                {$data.tutor_experience}
            </div>
        </div>


        <div class="panel panel-default">
            <div class="panel-heading">
                <h4 class="panel-title">TA的经历</h4>
            </div>
            <div class="panel-body teacher-description">
                <p class="desc">{$data.person_experience}</p>
            </div>
        </div>

        <!-- hobbies ENDS -->
        <div class="timetable timetable-preview">
                <div id="schedule">
                    <h4 style="margin:10px 15px;font-size: 16px;">Note：带有蓝色标记的是该教员的空闲时间。</h4>
                    <div class="btn-group btn-group-justified btn-group-sm" style="width:100%;">
                        <a class="btn btn-hover-success">
                            <div class="btn-wrapper">
                                <div class="label-block"></div>
                            </div>
                        </a>
                        <a class="btn btn-hover-success btn-title">
                            <div class="btn-wrapper">
                                <div class="label-block">上午</div>
                            </div>
                        </a>
                        <a class="btn btn-hover-success btn-title">
                            <div class="btn-wrapper">
                                <div class="label-block">下午</div>
                            </div>
                        </a>
                        <a class="btn btn-hover-success btn-title">
                            <div class="btn-wrapper">
                                <div class="label-block">晚上</div>
                            </div>
                        </a>
                    </div>

                    <div class="btn-group btn-group-justified btn-group-sm" style="width:100%;" id="Mon">
                        <a class="btn btn-hover-success day btn-title">
                            <div class="btn-wrapper">
                                <div class="label-block">周一</div>
                            </div>
                        </a>
                        <a class="btn btn-hover-success morning <?php if($date[0]['morning']==1) echo 'btn-active'; ?>">
                            <div class="btn-wrapper">
                                <div class="label-block"></div>
                            </div>
                        </a>
                        <a class="btn btn-hover-success afternoon <?php if($date[0]['afternoon']==1) echo 'btn-active'; ?>">
                            <div class="btn-wrapper">
                                <div class="label-block"></div>
                            </div>
                        </a>
                        <a class="btn btn-hover-success night <?php if($date[0]['night']==1) echo 'btn-active'; ?>">
                            <div class="btn-wrapper">
                                <div class="label-block"></div>
                            </div>
                        </a>
                    </div>

                    <div class="btn-group btn-group-justified btn-group-sm" style="width:100%;" id="Tue">
                        <a class="btn btn-hover-success day btn-title">
                            <div class="btn-wrapper">
                                <div class="label-block">周二</div>
                            </div>
                        </a>
                        <a class="btn btn-hover-success <?php if($date[1]['morning']==1) echo 'btn-active'; ?>">
                            <div class="btn-wrapper">
                                <div class="label-block"></div>
                            </div>
                        </a>
                        <a class="btn btn-hover-success <?php if($date[1]['afternoon']==1) echo 'btn-active'; ?>">
                            <div class="btn-wrapper">
                                <div class="label-block"></div>
                            </div>
                        </a>
                        <a class="btn btn-hover-success <?php if($date[1]['night']==1) echo 'btn-active'; ?>">
                            <div class="btn-wrapper">
                                <div class="label-block"></div>
                            </div>
                        </a>
                    </div>

                    <div class="btn-group btn-group-justified btn-group-sm" style="width:100%;" id="Wed">
                        <a class="btn btn-hover-success day btn-title">
                            <div class="btn-wrapper">
                                <div class="label-block">周三</div>
                            </div>
                        </a>
                        <a class="btn btn-hover-success morning <?php if($date[2]['morning']==1) echo 'btn-active'; ?>">
                            <div class="btn-wrapper">
                                <div class="label-block"></div>
                            </div>
                        </a>
                        <a class="btn btn-hover-success afternoon <?php if($date[2]['afternoon']==1) echo 'btn-active'; ?>">
                            <div class="btn-wrapper">
                                <div class="label-block"></div>
                            </div>
                        </a>
                        <a class="btn btn-hover-success night <?php if($date[2]['night']==1) echo 'btn-active'; ?>">
                            <div class="btn-wrapper">
                                <div class="label-block"></div>
                            </div>
                        </a>
                    </div>

                    <div class="btn-group btn-group-justified btn-group-sm" style="width:100%;" id="Thu">
                        <a class="btn btn-hover-success day btn-title">
                            <div class="btn-wrapper">
                                <div class="label-block">周四</div>
                            </div>
                        </a>
                        <a class="btn btn-hover-success morning <?php if($date[3]['morning']==1) echo 'btn-active'; ?>">
                            <div class="btn-wrapper">
                                <div class="label-block"></div>
                            </div>
                        </a>
                        <a class="btn btn-hover-success afternoon <?php if($date[3]['afternoon']==1) echo 'btn-active'; ?>">
                            <div class="btn-wrapper">
                                <div class="label-block"></div>
                            </div>
                        </a>
                        <a class="btn btn-hover-success night <?php if($date[3]['night']==1) echo 'btn-active'; ?>">
                            <div class="btn-wrapper">
                                <div class="label-block"></div>
                            </div>
                        </a>
                    </div>

                    <div class="btn-group btn-group-justified btn-group-sm" style="width:100%;" id="Fri">
                        <a class="btn btn-hover-success day btn-title">
                            <div class="btn-wrapper">
                                <div class="label-block">周五</div>
                            </div>
                        </a>
                        <a class="btn btn-hover-success morning <?php if($date[4]['morning']==1) echo 'btn-active'; ?>">
                            <div class="btn-wrapper">
                                <div class="label-block"></div>
                            </div>
                        </a>
                        <a class="btn btn-hover-success afternoon <?php if($date[4]['afternoon']==1) echo 'btn-active'; ?>">
                            <div class="btn-wrapper">
                                <div class="label-block"></div>
                            </div>
                        </a>
                        <a class="btn btn-hover-success night <?php if($date[4]['night']==1) echo 'btn-active'; ?>">
                            <div class="btn-wrapper">
                                <div class="label-block"></div>
                            </div>
                        </a>
                    </div>

                    <div class="btn-group btn-group-justified btn-group-sm" style="width:100%;" id="Sat">
                        <a class="btn btn-hover-success day btn-title">
                            <div class="btn-wrapper">
                                <div class="label-block">周六</div>
                            </div>
                        </a>
                        <a class="btn btn-hover-success morning <?php if($date[5]['morning']==1) echo 'btn-active'; ?>">
                            <div class="btn-wrapper">
                                <div class="label-block"></div>
                            </div>
                        </a>
                        <a class="btn btn-hover-success afternoon <?php if($date[5]['afternoon']==1) echo 'btn-active'; ?>">
                            <div class="btn-wrapper">
                                <div class="label-block"></div>
                            </div>
                        </a>
                        <a class="btn btn-hover-success night <?php if($date[5]['night']==1) echo 'btn-active'; ?>">
                            <div class="btn-wrapper">
                                <div class="label-block"></div>
                            </div>
                        </a>
                    </div>

                    <div class="btn-group btn-group-justified btn-group-sm" style="width:100%;" id="Sun">
                        <a class="btn btn-hover-success day btn-title">
                            <div class="btn-wrapper">
                                <div class="label-block">周日</div>
                            </div>
                        </a>
                        <a class="btn btn-hover-success morning <?php if($date[6]['morning']==1) echo 'btn-active'; ?>">
                            <div class="btn-wrapper">
                                <div class="label-block"></div>
                            </div>
                        </a>
                        <a class="btn btn-hover-success afternoon <?php if($date[6]['afternoon']==1) echo 'btn-active'; ?>">
                            <div class="btn-wrapper">
                                <div class="label-block"></div>
                            </div>
                        </a>
                        <a class="btn btn-hover-success night <?php if($date[6]['night']==1) echo 'btn-active'; ?>">
                            <div class="btn-wrapper">
                                <div class="label-block"></div>
                            </div>
                        </a>
                    </div>
                </div>

        </div>

        <div style="margin-top: 20px; margin-bottom: 20px; text-align: right;">
            <a href="javascript:;" class="btn btn-primary long_click " data-id="{$data.user_id}">申请预约</a>
        </div>
    </div>
 <else/>
    <div id="teacher_preview" class="teacher-preview body-margin">
        <div class="container">
            <div class="row">

                <div class="col-md-3 left-panel teacher_home teacher-side-bar">
                    <div class="">
                        <div class="text-right">
                            <img src="__ROOT__/upload/{$data.avatar}" class="" width="180" height="180">
                        </div>

                    </div>
                    <div class="panel panel-default activity" style="display:none">
                        <div class="panel-heading text-center">
                            <h3 class="panel-title">我们的社区</h3>
                        </div>
                        <div class="panel-body">
                            <ul class="list-unstyled text-center">

                            </ul>
                        </div>
                    </div>
                </div>


                <div class="col-md-9">

                    <div class="summary panel panel-default">
                        <div class="panel-heading">
                            <h4 class="panel-title">个人信息</h4>
                        </div>
                        <div class="panel-body teahcer-basics">
                            <h3 class="name" id="teahcer_name">{$data.relname}</h3>
                            <div class="teacher-basics-content row">

                                <div class="col-md-6">
                                    <div class="subject">
                                        <p>
                                            授课科目
                                            {$data.lesson}
                                        </p>
                                    </div>
                                    <div class="grade" style="margin-top: 20px;margin-bottom: 20px;">
                                        <p>
                                            教学年级
                                            {$data.grade}
                                        </p>
                                        <!-- 需要改一下后端 -->
                                    </div>
                                </div>

                                <div class="col-md-6">
                                    <ul class="ul-style">
                                        <!-- 学校 专业 年级 -->
                                        <li>
                                            <p>
                                                {$data.school}
                                            </p>
                                        </li>
                                        <li>
                                            <p>高考成绩：{$data.score}</p>
                                        </li>
                                    </ul>
                                </div>

                            </div>
                            <p></p>
                            <hr>
                            <p>个人描述:
                                <span>{$data.description}</span></p>
                        </div>
                    </div>
                    <!-- summmary ENDS -->

                    <div class="work-experience panel panel-default">
                        <div class="panel-heading">
                            <h4 class="panel-title">家教经历</h4>
                        </div>
                        <div class="panel-body">
                            {$data.tutor_experience}
                        </div>
                    </div>
                    <!-- work-experience ENDS -->

                    <div class="prize panel panel-default">
                        <div class="panel-heading">
                            <h4 class="panel-title">TA的经历</h4>
                        </div>
                        <div class="panel-body teacher-description">

                            <p>{$data.person_experience}</p>
                        </div>
                    </div>

                    <!-- hobbies ENDS -->
                    <div class="row timetable timetable-preview">
                        <div class="col-md-12">
                            <div id="schedule">
                                <h4 style="margin:10px 15px;font-size: 16px;">Note：带有蓝色标记的是该教员的空闲时间。</h4>
                                <div class="btn-group btn-group-justified btn-group-sm" style="width:100%;">
                                    <a class="btn btn-hover-success">
                                        <div class="btn-wrapper">
                                            <div class="label-block"></div>
                                        </div>
                                    </a>
                                    <a class="btn btn-hover-success btn-title">
                                        <div class="btn-wrapper">
                                            <div class="label-block">上午</div>
                                        </div>
                                    </a>
                                    <a class="btn btn-hover-success btn-title">
                                        <div class="btn-wrapper">
                                            <div class="label-block">下午</div>
                                        </div>
                                    </a>
                                    <a class="btn btn-hover-success btn-title">
                                        <div class="btn-wrapper">
                                            <div class="label-block">晚上</div>
                                        </div>
                                    </a>
                                </div>

                                <div class="btn-group btn-group-justified btn-group-sm" style="width:100%;" id="Mon">
                                    <a class="btn btn-hover-success day btn-title">
                                        <div class="btn-wrapper">
                                            <div class="label-block">周一</div>
                                        </div>
                                    </a>
                                    <a class="btn btn-hover-success morning <?php if($date[0]['morning']==1) echo 'btn-active'; ?>">
                                        <div class="btn-wrapper">
                                            <div class="label-block"></div>
                                        </div>
                                    </a>
                                    <a class="btn btn-hover-success afternoon <?php if($date[0]['afternoon']==1) echo 'btn-active'; ?>">
                                        <div class="btn-wrapper">
                                            <div class="label-block"></div>
                                        </div>
                                    </a>
                                    <a class="btn btn-hover-success night <?php if($date[0]['night']==1) echo 'btn-active'; ?>">
                                        <div class="btn-wrapper">
                                            <div class="label-block"></div>
                                        </div>
                                    </a>
                                </div>

                                <div class="btn-group btn-group-justified btn-group-sm" style="width:100%;" id="Tue">
                                    <a class="btn btn-hover-success day btn-title">
                                        <div class="btn-wrapper">
                                            <div class="label-block">周二</div>
                                        </div>
                                    </a>
                                    <a class="btn btn-hover-success <?php if($date[1]['morning']==1) echo 'btn-active'; ?>">
                                        <div class="btn-wrapper">
                                            <div class="label-block"></div>
                                        </div>
                                    </a>
                                    <a class="btn btn-hover-success <?php if($date[1]['afternoon']==1) echo 'btn-active'; ?>">
                                        <div class="btn-wrapper">
                                            <div class="label-block"></div>
                                        </div>
                                    </a>
                                    <a class="btn btn-hover-success <?php if($date[1]['night']==1) echo 'btn-active'; ?>">
                                        <div class="btn-wrapper">
                                            <div class="label-block"></div>
                                        </div>
                                    </a>
                                </div>

                                <div class="btn-group btn-group-justified btn-group-sm" style="width:100%;" id="Wed">
                                    <a class="btn btn-hover-success day btn-title">
                                        <div class="btn-wrapper">
                                            <div class="label-block">周三</div>
                                        </div>
                                    </a>
                                    <a class="btn btn-hover-success morning <?php if($date[2]['morning']==1) echo 'btn-active'; ?>">
                                        <div class="btn-wrapper">
                                            <div class="label-block"></div>
                                        </div>
                                    </a>
                                    <a class="btn btn-hover-success afternoon <?php if($date[2]['afternoon']==1) echo 'btn-active'; ?>">
                                        <div class="btn-wrapper">
                                            <div class="label-block"></div>
                                        </div>
                                    </a>
                                    <a class="btn btn-hover-success night <?php if($date[2]['night']==1) echo 'btn-active'; ?>">
                                        <div class="btn-wrapper">
                                            <div class="label-block"></div>
                                        </div>
                                    </a>
                                </div>

                                <div class="btn-group btn-group-justified btn-group-sm" style="width:100%;" id="Thu">
                                    <a class="btn btn-hover-success day btn-title">
                                        <div class="btn-wrapper">
                                            <div class="label-block">周四</div>
                                        </div>
                                    </a>
                                    <a class="btn btn-hover-success morning <?php if($date[3]['morning']==1) echo 'btn-active'; ?>">
                                        <div class="btn-wrapper">
                                            <div class="label-block"></div>
                                        </div>
                                    </a>
                                    <a class="btn btn-hover-success afternoon <?php if($date[3]['afternoon']==1) echo 'btn-active'; ?>">
                                        <div class="btn-wrapper">
                                            <div class="label-block"></div>
                                        </div>
                                    </a>
                                    <a class="btn btn-hover-success night <?php if($date[3]['night']==1) echo 'btn-active'; ?>">
                                        <div class="btn-wrapper">
                                            <div class="label-block"></div>
                                        </div>
                                    </a>
                                </div>

                                <div class="btn-group btn-group-justified btn-group-sm" style="width:100%;" id="Fri">
                                    <a class="btn btn-hover-success day btn-title">
                                        <div class="btn-wrapper">
                                            <div class="label-block">周五</div>
                                        </div>
                                    </a>
                                    <a class="btn btn-hover-success morning <?php if($date[4]['morning']==1) echo 'btn-active'; ?>">
                                        <div class="btn-wrapper">
                                            <div class="label-block"></div>
                                        </div>
                                    </a>
                                    <a class="btn btn-hover-success afternoon <?php if($date[4]['afternoon']==1) echo 'btn-active'; ?>">
                                        <div class="btn-wrapper">
                                            <div class="label-block"></div>
                                        </div>
                                    </a>
                                    <a class="btn btn-hover-success night <?php if($date[4]['night']==1) echo 'btn-active'; ?>">
                                        <div class="btn-wrapper">
                                            <div class="label-block"></div>
                                        </div>
                                    </a>
                                </div>

                                <div class="btn-group btn-group-justified btn-group-sm" style="width:100%;" id="Sat">
                                    <a class="btn btn-hover-success day btn-title">
                                        <div class="btn-wrapper">
                                            <div class="label-block">周六</div>
                                        </div>
                                    </a>
                                    <a class="btn btn-hover-success morning <?php if($date[5]['morning']==1) echo 'btn-active'; ?>">
                                        <div class="btn-wrapper">
                                            <div class="label-block"></div>
                                        </div>
                                    </a>
                                    <a class="btn btn-hover-success afternoon <?php if($date[5]['afternoon']==1) echo 'btn-active'; ?>">
                                        <div class="btn-wrapper">
                                            <div class="label-block"></div>
                                        </div>
                                    </a>
                                    <a class="btn btn-hover-success night <?php if($date[5]['night']==1) echo 'btn-active'; ?>">
                                        <div class="btn-wrapper">
                                            <div class="label-block"></div>
                                        </div>
                                    </a>
                                </div>

                                <div class="btn-group btn-group-justified btn-group-sm" style="width:100%;" id="Sun">
                                    <a class="btn btn-hover-success day btn-title">
                                        <div class="btn-wrapper">
                                            <div class="label-block">周日</div>
                                        </div>
                                    </a>
                                    <a class="btn btn-hover-success morning <?php if($date[6]['morning']==1) echo 'btn-active'; ?>">
                                        <div class="btn-wrapper">
                                            <div class="label-block"></div>
                                        </div>
                                    </a>
                                    <a class="btn btn-hover-success afternoon <?php if($date[6]['afternoon']==1) echo 'btn-active'; ?>">
                                        <div class="btn-wrapper">
                                            <div class="label-block"></div>
                                        </div>
                                    </a>
                                    <a class="btn btn-hover-success night <?php if($date[6]['night']==1) echo 'btn-active'; ?>">
                                        <div class="btn-wrapper">
                                            <div class="label-block"></div>
                                        </div>
                                    </a>
                                </div>
                            </div>
                            <!-- schedule ENDS -->

                        </div>

                    </div>
                    <div style="margin-top: 20px; margin-bottom: 20px; float: right;">
                        <a href="javascript:;" class="btn btn-primary long_click" data-id="{$data.user_id}"><i class="iconfont"></i>申请预约</a>
                    </div>

                    <!-- col-md-8 -->
                </div>
            </div>
        </div>
    </div>
 </if>

<div class="modal fade" id="FastFindModal" tabindex="-1" role="dialog" aria-labelledby="FastFindModalLabel" aria-hidden="true">
                <div class="modal-dialog text-center">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                <span aria-hidden="true">×</span>
                            </button>
                            <h4 class="modal-title" id="FastFindModalLabel">请填写相关信息</h4>
                        </div>

                        <div class="modal-body">
                            <div class="login-form" ng-controller="FastOrderCtrl">
                                <form>
                                    <div class="row">
                                        <div class="col-md-3 col-xs-12">
                                        </div>
                                        <div class="col-md-12 col-xs-12">
                                            <div class="form-group clearfix">
                                                <label class="control-label left" for="phone">
                                                    姓名
                                                </label>
                                                <input type="name" class="form-control login-field long_name pop-form-control" value="" placeholder="请输入姓名" id="phone" name="name" required="">
                                            </div>
                                        </div>
                                    </div>

                                    <div class="form-group clearfix">
                                        <label class="control-label left" for="subject" style=" line-height: 47px;">年级</label>
                                        <select name="grade" id="grade">
                                            <option value="" selected>请选择年级</option>
                                            <option value="1">一年级</option>
                                            <option value="2">二年级</option>
                                            <option value="3">三年级</option>
                                            <option value="4">四年级</option>
                                            <option value="5">五年级</option>
                                            <option value="6">六年级</option>
                                            <option value="7">七年级</option>
                                            <option value="8">八年级</option>
                                            <option value="9">九年级</option>
                                            <option value="10">高一</option>
                                            <option value="11">高二</option>
                                            <option value="12">高三</option>
                                        </select>
                                    </div>
                                    <div class="form-group clearfix">
                                        <label class="control-label left" for="lesson">科目</label>
                                        <input class="form-control login-field pop-form-control" type="text" placeholder="请输入科目" id="lesson" name="lesson" required="">
                                    </div>
                                    <div class="form-group clearfix">
                                        <label class="control-label left" for="time">时间</label>
                                        <input class="form-control login-field long_time pop-form-control" type="text" placeholder="请输入您预约时间，例：2016-01-01" id="time" name="time" required="">
                                    </div>

                                    <div class="form-group clearfix">
                                        <label class="control-label left" for="location">地址</label>
                                        <input class="form-control login-field  long_address pop-form-control"  type="text" placeholder="请输入您的家庭地址" id="location" name="address" required="">
                                    </div>

                                    <div class="form-group clearfix">
                                        <label class="control-label left" for="desc">备注</label>
                                        <textarea class="form-control login-field  long_remarks pop-form-control" type="text" placeholder="您可以留言备注信息哦" id="desc" name="remarks" rows="3"></textarea>
                                    </div>

                                    <a href="javascript:;" class="btn bg-green white btn-lg btn-block kkk_click  " data-dismiss="modal" type="submit">提交预约</a>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
<include file="./Application/Home/View/default/public/footer.html" />
<script>
    $('.long_advice').click(function(){
        var user_id = 1;
        var phone =  $('.advice_phone').val();
        var remarks =  $('.advice_remarks').val();
        if(!user_id){
            window.location="/Home/Index/login";
        }else if(!phone){
            alert('请填写手机号');
            return false;
        }else{
            $.ajax({
                type:"post",
                url:"/Home/Index/fastparentOrder",
                dataType:"json",
                data:{
                    cellphone:phone,
                    remarks:remarks
                },
                success:function(result){
                    if(result.flag == 1){
                        alert(result.content);
                        location.reload();
                    }else{
                        alert(result.content);
                        location.reload();
                    }
                }
            });
        }
    })


    //
    $('body').on('click', '.long_click', function(){
        var id = '<?php echo session('id');?>';
        // 未登录
        if (!id) {
            window.open('/Home/Index/register');
        }
        // 已经登录
        else {
            dataid = $(this).data('id');
            $('#FastFindModal').show().addClass('in');
        }
    });

    // 提交预约
    $('.kkk_click').click(function(){

        var name =  $('.long_name').val();
        var grade =  $('[name=grade]').val();
        var lesson = $('[name=lesson]').val();
        var time =  $('.long_time').val();
        var address =  $('.long_address').val();
        var remarks =  $('.long_remarks').val();
        var coursenum = $('[name=coursenum]').val();
        if (!/^[\u4e00-\u9fa5]{2,4}$/.test(name)){
            alert('请填写学生姓名');
            return false;
        }
        if (grade==""){
            alert('请填写年级和科目');
            return false;
        }
        if (lesson== '') {
            alert('请填写科目');
            return false;
        }
        if( time==""){
            alert('请填写期望时间');
            return false;
        }
        if (coursenum === '') {
            alert('请填写课程时间');
            return false;
        }
        if(!/^[\u4e00-\u9fa5]+$/.test(address)){
            alert('请填写地址');
            return false;
        }
        if( remarks==""){
            alert('请填写备注');
            return false;
        }
        $.ajax({
            type:"post",
            url:"./parentOrder",
            dataType:"json",
            data:{
                teacher_id: dataid,
                grade:grade,
                name:name,
                time:time,
                address:address,
                remarks:remarks,
                lesson: lesson
            },
            success: function(result) {
                if ( result.flag == 1) {
                    alert(result.content);
                    $('#FastFindModal').hide().removeClass('in');
                    location.reload();
                } else{
                    alert(result.content);
                    $('#FastFindModal').hide().removeClass('in');
                    location.reload();
                }
            }
        });
    })
    // 关闭语言浮层
    $('.close').click(function(){
        $('#FastFindModal').hide().removeClass('in');

    });

</script>
</body>
</html>
